<html>
<head>
<title>My Form</title>



</head>
<body>

<?php //echo $this->validation->error_string; ?>
<style>.error{
	color:#F00;}</style>
    
    
<?php echo form_open('form'); ?>

<h5>Username</h5>
<input type="text" name="username" value="<?php echo $this->validation->username;?>" size="50" />
<?php echo $this->validation->username_error; ?>

<h5>Password</h5>
<input type="text" name="password" value="<?php echo $this->validation->password;?>" size="50" />
<?php echo $this->validation->password_error; ?>

<h5>Password Confirm</h5>
<input type="text" name="passconf" value="<?php echo $this->validation->passconf;?>" size="50" />
<?php echo $this->validation->passconf_error; ?>

<h5>Email Address</h5>
<input type="text" name="email" value="<?php echo $this->validation->email;?>" size="50" />
<?php echo $this->validation->email_error; ?>

<h5>Pais</h5>
  <p>
    <label>
      <input type="radio" name="pais" value="bolivia" id="pais_0" <?php echo $this->validation->set_radio('pais', 'bolivia'); ?>>
      Bolivia</label>
    <br>
    <label>
      <input type="radio" name="pais" value="peru" id="pais_1" <?php echo $this->validation->set_radio('pais', 'peru'); ?>>
      Peru</label>
    <br>
    <label>
      <input type="radio" name="pais" value="chile" id="pais_2" <?php echo $this->validation->set_radio('pais', 'chile'); ?>>
      Chile</label>
    <br>
    <?php echo $this->validation->pais_error; ?>
  </p>

<h5>Estado Civil</h5>
<p>
  <select name="estado">
    <option  value="" >- Elija un estado -</option>
    <option value="casado" <?php echo $this->validation->set_select('estado', 'casado'); ?> >Casado</option>
    <option value="soltero" <?php echo $this->validation->set_select('estado', 'soltero'); ?>>Soltero</option>
  </select>
  <?php echo $this->validation->estado_error; ?>
</p>
<p>
  
</p>
<div><input type="submit" value="Submit" /></div>


</form>
<?php 
if ($_SERVER['REQUEST_METHOD']=='POST') {
	echo "<pre>";
	print_r($_POST);
	echo "</pre>";
}
?>

</body>
</html>